<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-bind入门</title>
</head>
<body>
    <div id="app">
        <a v-bind:href="url">链接1</a><br>
        <a :href="url">链接2</a>
    </div>
</body>
<script type="module">
    import {createApp} from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
    createApp({
        data() {
            return {
                url: 'https://www.baidu.com'
            }
        }
    }).mount('#app')
</script>
</html>